using System;
using L=Science.Physics.GeneralPhysics;

namespace Serway.Chapter35
{
	/// <summary>
	/// Example05: Laser Light in a Compact Disc
	/// A laser is a compact disc player generates light that 
	/// has a wavelength of 780 nm in air.
	/// (A)	Find the speed of this light once it enters the 
	/// plastic of a compact disc (n = 1.55).
	/// (B)	What is the wavelength of this light in the plastic?
	/// </summary>
	public class Example05
	{
		public Example05()
		{
		}
		private string result;
		public string Result
		{
			get{return result;}
		}
		public void Compute()
		{
			L.Optics obj = new L.Optics();
			obj.IndexOfRefractionForMedium1 = 1.55;
			result+=Convert.ToString(obj.SpeedOfLightInMedium)+"  ";
			obj.WaveLength = 780.0E-9;
			result+=Convert.ToString(obj.WaveLengthInMedium);
		}
	}
}
